package com.ruoyi.position.domin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

/**
 * @author 马兰友
 * @Date: 2024/04/01/21:38
 */
public class DisTrack {

    private Integer id;
    private Double level;
    private String location;
    private Double lng;
    private Double lat;
    private Integer depth;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private Integer isNeedDonate;

    public DisTrack(Integer id, Double level, String location, Double lng, Double lat, Integer depth, LocalDateTime createTime, Integer isNeedDonate) {
        this.id = id;
        this.level = level;
        this.location = location;
        this.lng = lng;
        this.lat = lat;
        this.depth = depth;
        this.createTime = createTime;
        this.isNeedDonate = isNeedDonate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Double getLevel() {
        return level;
    }

    public void setLevel(Double level) {
        this.level = level;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Double getLng() {
        return lng;
    }

    public void setLng(Double lng) {
        this.lng = lng;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public Integer getDepth() {
        return depth;
    }

    public void setDepth(Integer depth) {
        this.depth = depth;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getIsNeedDonate() {
        return isNeedDonate;
    }

    public void setIsNeedDonate(Integer isNeedDonate) {
        this.isNeedDonate = isNeedDonate;
    }

    @Override
    public String toString() {
        return "DisTrack{" +
                "id=" + id +
                ", level=" + level +
                ", location='" + location + '\'' +
                ", lng=" + lng +
                ", lat=" + lat +
                ", depth=" + depth +
                ", createTime=" + createTime +
                ", isNeedDonate=" + isNeedDonate +
                '}';
    }
}
